import { defineStore } from 'pinia';
import { ref } from 'vue';
export const commonStore = defineStore('common', () => {
    const isCollapse = ref(false)
    const setCollapse = (val) => {
        isCollapse.value = val
    }
    const isAside = ref(true)
    const setAside = (val) => {
        isAside.value = val
    }
    const isMask = ref(false)
    const setMask = (val) => {
        isMask.value = val
    }
    return { isCollapse, isAside, isMask, setAside, setCollapse, setMask }
});
//配合pinia-plugin-persistedstate插件,{ persist: true }开启持久化